package beans;

import java.util.ArrayList;

import javax.ejb.Local;
import entities.*;
@Local
public interface BookManager {

	public int addMasterRecord(String title, String type);
	public int lookupMasterRecord(String name);
	public int lookupMasterRecord(String name, String type);
	public boolean deleteMasterRecord(String title, String type);
	
	//get all copies of the book with master record id
	public ArrayList<Item> getCopies(int masterId);
	public boolean addCopy(Item b);
	public boolean deleteCopy(int copyId);
	public Item getCopy(int copyId);
	public boolean updateCopy(Item item);
	
	String addRequest(Integer[] isChecked, int id, Integer[] ownerId);
	public Boolean updateMasterRecord(Item item);
	
	
}
